<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./JS/vue.js"></script>
<body>
    <div class="box">
        <h1 v-text="msg"></h1>
        <h1 v-html="msg"></h1>
        <h1 v-text="msg3.toUpperCase()"></h1>
        <h1 v-once>{{msg2}}</h1>

        <div title="你好！！">你好</div>
        <div v-bind:title="msg2">你好</div>
        <a href="http://baidu.com">百度一下</a>
        <a v-bind:href="url">{{msg2}}</a>
    </div>

    <script>
        let vm = new Vue({
            el:'.box',
            data:{
                msg:'<div>你好!!</div>',
                msg2:'你好！吃了嘛？',
                msg3:'abcdefg',
                url:'http://baidu.com'
            }
        })
        vm.msg2 = "你好！！还没呢!";
    </script>
</body>
</html>